<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.project.*" %>

<%@ include file="../init_include.jsp" %>
<%@ include file="../checkPrivileges.jsp" %>
<%
	int catid=Request.getInt("catid");

	int id = Request.getInt("id",0);
	DataDispenseApp newDataDispenseApp = new DataDispenseApp();
	DataDispense newDataDispense = new DataDispense();
	if(id != 0)
		newDataDispense = newDataDispenseApp.getDataDispense(dbi,id);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="<%=Language.getCSSFile(session)%>" type="text/css">
<SCRIPT language=JavaScript1.2 src="../script/editor.js"></SCRIPT>
<title>ggs_DataDispense</title>
</head>
<body>
<%=Language.getNameByCode("sys.CurrentPos","Current Position")%>:<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_DataDispense<br> 
<hr>   
 <table width="100%" border="0" cellspacing="1" cellpadding="2" class="input_title">
   <tr>
     <td>&nbsp;<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_DataDispense</td>
   </tr>
 </table>
   <script language="javascript">
   <!--
   	function checkForm() {
   		var sForm=document.formIon;
   		sForm.Submit.disabled = true;
   	}
   	-->
   </script> 	
	 <form method="post" name="formIon" action="DataDispense_addmod.jsp" onSubmit="return checkForm();">
   <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
		    <tr class="bgcolor_title_tr">
      <td  class="input_title">iId</td>
      <td>    <input name="iId" type="text" value="<%=newDataDispense.getId()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iObjectId</td>
      <td>    <input name="iObjectId" type="text" value="<%=newDataDispense.getObjectId()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iType</td>
      <td>    <input name="iType" type="text" value="<%=newDataDispense.getType()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCode</td>
      <td>    <input name="sCode" type="text" value="<%=newDataDispense.getCode()%>" size="12" maxlength="12">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iPic</td>
      <td>    <input name="iPic" type="text" value="<%=newDataDispense.getPic()%>" size="3" maxlength="3"><input type="button" name="Button" value="<%=Language.getNameByCode("sys.select","Select")%>" onClick='lookIonPic("cms",document.formIon.iPic,"<%=curpath%>");'>
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iHes</td>
      <td>    <input name="iHes" type="text" value="<%=newDataDispense.getHes()%>" size="3" maxlength="3">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iCatia</td>
      <td>    <input name="iCatia" type="text" value="<%=newDataDispense.getCatia()%>" size="3" maxlength="3">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iDcn</td>
      <td>    <input name="iDcn" type="text" value="<%=newDataDispense.getDcn()%>" size="3" maxlength="3">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iEtc</td>
      <td>    <input name="iEtc" type="text" value="<%=newDataDispense.getEtc()%>" size="3" maxlength="3">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">dIssueDate</td>
      <td>    <input name="dIssueDate" type="text" value="<%=newDataDispense.getIssueDate()%>" size="20" maxlength="23">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sRemark</td>
      <td>    <input name="sRemark" type="text" value="<%=newDataDispense.getRemark()%>" size="20" maxlength="200">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCrUser</td>
      <td>    <input name="sCrUser" type="text" value="<%=newDataDispense.getCrUser()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">dCrDate</td>
      <td>    <input name="dCrDate" type="text" value="<%=newDataDispense.getCrDate()%>" size="20" maxlength="23">
      </td>
    </tr>

 </table>
 <input type="Submit" name="Submit" style="width=80" value="<%=Language.getNameByCode("sys.Submit","Submit")%>">
 <input type="Reset" name="Reset" style="width=80" value="<%=Language.getNameByCode("sys.Reset","Reset")%>">
 <input type="button" name="close" style="width=80" value="<%=Language.getNameByCode("sys.Close","Close")%> " onClick="self.close();">
 <input type="hidden" name="id" value="<%=id%>">
 <input type="hidden" name="catid" value="<%=catid%>">
</form>
</body>                
</html>
<%@ include file="../init_free.jsp" %>
